<div>
  <el-button plain type="success" @click="$router.push('/goods-add')">添加商品</el-button>
  <!-- 商品表格 -->
  <el-table v-loading="isLoading" :data="goodsList" stripe style="width: 100%">
    <el-table-column :index="indexMethod" type="index" width="50">
    </el-table-column>
    <el-table-column prop="goods_name" label="商品名称" width="280">
    </el-table-column>
    <el-table-column prop="goods_price" label="商品价格" width="180">
    </el-table-column>
    <el-table-column prop="goods_weight" label="商品重量" width="180">
    </el-table-column>
    <el-table-column prop="add_time" label="创建时间" width="180">
    </el-table-column>
    <el-table-column label="操作" min-width="180">
      <template slot-scope="scope">
        <el-button plain size="mini" type="primary" icon="el-icon-edit"></el-button>
        <el-button plain size="mini" type="danger" icon="el-icon-delete"></el-button>
      </template>
    </el-table-column>
  </el-table>
  <!-- 分页 -->
  <el-pagination :current-page="pagenum" @current-change="curChange" background layout="prev, pager, next" :total="total">
  </el-pagination>
</div>